package com.rockcent.mall.lib.domain;

import com.rockcent.common.domain.IDEntityMall;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by oyhk on 16/7/27.
 *
 * 卡券可使用的门店列表
 */
@Entity
@Table(name = "coupon_merchant_stores")
@DynamicInsert
@DynamicUpdate
public class MerchantCouponStores extends IDEntityMall {

    @Column(columnDefinition = "bigint comment '门店 id'")
    private Long merchantStoreId;
    @Column(columnDefinition = "bigint comment '卡券 id'")
    private Long couponId;

    public Long getMerchantStoreId() {
        return merchantStoreId;
    }

    public void setMerchantStoreId(Long merchantStoreId) {
        this.merchantStoreId = merchantStoreId;
    }

    public Long getCouponId() {
        return couponId;
    }

    public void setCouponId(Long couponId) {
        this.couponId = couponId;
    }

    @Override
    public String toString() {
        return "MerchantCouponStores{" +
                "merchantStoreId=" + merchantStoreId +
                ", id=" + id +
                ", couponId=" + couponId +
                ", dateCreated=" + dateCreated +
                ", lastUpdated=" + lastUpdated +
                ", isDelete=" + isDelete +
                ", version=" + version +
                '}';
    }
}
